import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home/Home.vue'
import Serve from '../views/serve/Serve'
import Activity from '../views/activity/Activity'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',  
    redirect:'/Login'
  },
  {
    path:"/home",
    component: Home,
    children:[
      {
        path:"/home/serve",
        component:Serve
      },
      {
        path:"/home/activity",
        component:Activity
      },
      {
        path:"/home/start",
        component: () => import('@/views/start/Start')
      },
      {
        path:"/home/new",
        component: () => import('@/views/new/New')
      }
    ]
  },
  {
    path:'*',
    component: () => import('@/views/Login.vue')
  },
  {
    path:'/Sign',
    component: () => import('@/views/Sign.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
